﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServiceClient
{
    public class HeartbeatClientComponent : IClientComponent
    {
        private int _heartbeatFrequency;

        public void Initialize(string xmlString)
        {
            _heartbeatFrequency = 1;
        }

        public string SourceServiceComponent
        {
            get { return "ServiceFramework.HeartbeatServiceComponent"; }
        }

        public void ProcessMessage(string message)
        {
            throw new System.NotImplementedException();
        }

        private void HeartbeatMonitor()
        {
            int heartbeatInterval = 1/_heartbeatFrequency;
            int maxWaitTime = heartbeatInterval*2;
        }
    }
}
